// 基础响应类型
export interface BaseResponse<T> {
  state: boolean;
  data?: T;
  msg?: string;
}

// 商品基本信息
export interface Product {
  id?: number;
  name?:string,
  productId?:number;
  productName?: string;
  brandId?: number;
  price?: number;
  categoryId?: number;
  showPrice?: number;
  isDel?: number;
  detailInfo?:string
  applyAge?:string
  description?:string
  version?:number
}

// 商品属性
export interface AttributeProduct {
  attributeId?: number;
  productId?: number;
  attributeName?: string;
  attributeImg?: string;
  price?: number;
  isDel?: number;
  quantity?:number
}
export interface AttributeProduct2 {
  attributeId?: number;
  attributeName: string;
  attributeImg?: string;
  price: number;
  quantity:number
}
// 商品带属性VO
export interface ProductVO extends Product {
  attributes: AttributeProduct[];
}

// 分页响应结构
export interface PageResult<T> {
  records: T[];
  total: number;
  size: number;
  current: number;
}
